package com.ww.yaodao.exception;

import io.jsonwebtoken.SignatureException;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class PermissionHandlerException {
    @ExceptionHandler(value = { SignatureException.class })
    @ResponseBody
    public String authorizationException(SignatureException e){
        return "1008";
    }
}
